package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) RolePermissions(ctx context.Context, req *v1.RolePermissionsReq) (res *v1.RolePermissionsRes, err error) {
	res = &v1.RolePermissionsRes{}
	res.RolePermissionsOutput, err = service.SysRole().Permissions(ctx, req.Id)
	return
}
